package core

import (
	"api-manager-server/global"
	"api-manager-server/initialize"
	"context"
)

type Server interface {
	ListenAndServe() error
}

func RunWindowsServer() {
	// 初始化路由
	Router := initialize.Routers()
	// 初始化服务
	s := InitServer(":8080", Router)
	// 启动服务器
	s.ListenAndServe().Error()
	defer global.Mongo.Disconnect(context.TODO())
}
